/**
 * 
 */
package test;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

import com.edocbase.desktopserver.ActionMapper;
import com.edocbase.desktopserver.DesktopServerActivator;
import com.edocbase.desktopserver.IDesktopServer;
import com.edocbase.desktopserver.impl.jetty.JettyDesktopServer;

/**
 * @author Admin
 *
 */
public class DesktopServerMain {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		Map<String, String> paras = new HashMap<String, String>();
		paras.put(IDesktopServer.WEB_HOME_KEY,
				new File(".", "web").getAbsolutePath());
		paras.put("server.port","8899");

		DesktopServerActivator serverActivator = new DesktopServerActivator();
		ActionMapper mapper = serverActivator.getActionMapper();
		//mapper.registeClass(MHTActionHandler.class);
		
		JettyDesktopServer desktopServer = new JettyDesktopServer();
		desktopServer.initParameter(paras);
		desktopServer.start();

	}

}
